Fix symlink issues because of cross-device link errors when destination is in a network share.