Adding an error check on version parsing of main CMakeLists