Implement a basic version of File.dirname

Not perfect, but good enough to get rubyspec moving along.
Class initializers receive varargs