Fixed a bug when uploading zip files to S3