fix build scripts