Refactor the version parse function of `FindSCOTCH.cmake` and `FindMETIS.cmake` into one.
Refactor the version parse function of
FindSCOTCH.cmakeandFindMETIS.cmakeinto one.