Make symlink swapping atomical
Merge pull request #336 from zupolgec/patch-1

Fixing symlink creation