Fix the version check to support OS X 10.10

Fix the OS X version check by using Gem::Version.new instead of string comparaison