art_ruby: use __dir__ instead of dirname in ruby 2