fix build script to work around its move to scripts dir