fix up build script