Replace dirname(__FILE__) with __DIR__