Replaced dirname(__FILE__) with __DIR__