Merge branch 'bugfix/fix_NotADirectoryError' into 'master'

Fixed issue #3 (NotADirectoryError due to race condition).

Closes #3

See merge request !3
5 jobs for master in 8 minutes and 59 seconds (queued for 1 second)