If multiple jobs are run in the same directory, there can be a race between os.path.exists and os.symlink.