Fix build and run tests script.