For consistency with core, changing dirname(__FILE__) to __DIR__