use CMAKE_CURRENT_LIST_DIR instead of CTEST_SCRIPT_DIRECTORY