windows(JRUBY-4523):File.dirname returns all the components of filename except the last one (edge cases on windows)
