fixed zip function to create proper ZIPs on Windows machines