fix to make upload app work with tar.gz file with a folder included