Add more static methods to RubyDir