Support newer versions of `cmake` and cleanup commands entered in the script by the old `cgal_create_cmake_script`.