Fix RubyDir::glob implementation