I didn’t know of `__dir__`, so thanks for that :) But it appears to be [2.0.0 only](http://stackoverflow.com/questions/15190700/why-is-file-uppercase-and-dir-lowercase), so that’s not an option for OS X 10.8, which comes with 1.8.7. Can you change it to use `__FILE__` instead?