Bug fix for copy_package_files()