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

Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de>
2 jobs for bugfix/fix_NotADirectoryError in 1 minute and 50 seconds (queued for 1 second)