file.copy: be smart with file changes