Simplify the custom cmake Modules.

I know how to REGEX, which is good for determining library versions.