minor build script improvements