Revert "changes in createZip : creating header when directory detected"

This reverts commit b40df965cfdcb8f595df17efa9130cdd6557483f.