don't use __dir__, JRuby doesn't support it