Change to use FileResource to get entries for RubyDir

This might fix https://github.com/jruby/jruby/issues/1100 although I haven't verified this yet.