fix issue in finding out source directory in CTestConfig.cmake