Preserve symlinks in atomic writing