replacing dirname(__FILE__) with __DIR__