Gem name recognition tweak for JRuby.