Use cmake VERSION_ comparison instead of REGEX

Also assume that any RUBY version greater than 1.9 functions like 1.9, which is needed to compile typelib on Fedora