no __dir__ in ruby 1.9.3 and jruby (which is 1.9.3)