Added a test for whether a package is flat or not

If a package is a directory, despite it being old-school, it copies it with the correct shutil.copytree method. If flat, then it issues copyfile.