Update build scripts
Improve zip functions