Add atomic file operation for symlink changes