Bugfix: don't use `__dir__`

`__dir__` is not available on Rubinius for now.

https://github.com/rubinius/rubinius/issues/2814