Fix checking for JRuby in the specs