Move file copying code out of copy_folder and into a (private) subprocess. Create a new public method for copying a single file, called copy_file
Fix bug in copy_file: if there's no slash, rindex barfs, so check first