Use File.dirname(__FILE__) instead of __dir__