silence warning in the build script and check that it is run from the correct place