Various improvements to the test_all build script.