improve checking for rubinius head version, update #2235