changes in createZip : creating header when directory detected