fixed rubygems version check