Replacing __DIR__ with dirname(__FILE__)