Actually implement __dir__ using stack trace logic. Fixes #651
Merge branch 'jruby-1_7'