File.directory? should handle IO's

The last failing tag for File.directory? is blocked by
http://jira.codehaus.org/browse/JRUBY-4033.