Remove explicit dependence on Rubinius module scope.
Imported changes from Rubinius.