Fixed JRuby detection in gemspec.