minor build script fixes