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

This fixes #ec9a7e5
Merge pull request #118 from strzibny/fix-max

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