replaced File.dirname(__FILE__) occurences by __dir__