Fixes nokogiri requirement for JRuby