(copy_file): Allow installation from non-directory (rather than only regular)