tweaks to build script

[skip ci]