making sure that zip files are written to the tmp file