corrected the creation of the folder and gzipping process