Compare Gem::Version objects to be sure of the highest version

My fix for the upstream highest version doesn't work everytime as we have to compare objects of Gem::Version to be sure. This PR makes it right.

This fixes #ec9a7e5