fix build script glitches