__dir__ is not a constant but a function

__dir__ is equal to File.dirname(File.realpath(__FILE__))