fix build script