Removed use of Rubinius.ruby18?.
Work around Rubinius-specific code.