Major refactoring of zerovm build scripts