Handle symlinks when copying files.