Fixing error in CMake logic to detect certain versions of CMake.