Change dirname(__FILE__) to __DIR__ and more