fix empty folders were not being added to the uploaded zip file and memory issues when handling big data