use is_file instead of is_dir to check if a path is a file that should be copied to the guest-machine