Retry temporary directory creation with new name if directory already exists (fixes #2)