Fix for bug#9442, ctest crash if CTEST_SOURCE_DIRECTORY was not set.