Repair regex CMake check.