Changed the copy_directory function so it won't skip hidden files if SKIP_HIDDEN has been set to false