Fixed bug where file in top directory was copied into a folder with it's name