Fix for Gem.Version Comparisons

A few minor changes for comparison of gem versions.