Fix running the test suite in out-of-tree builds.