diff --git a/src/config.inc.php b/src/config.inc.php
index <HASH>..<HASH> 100644
--- a/src/config.inc.php
+++ b/src/config.inc.php
@@ -85,7 +85,7 @@ require_once(dirname(__FILE__).'/libs/phpseclib/crypt/NostoCryptAES.php');
 require_once(dirname(__FILE__).'/libs/phpseclib/crypt/NostoCryptRandom.php');
 
 // Parse .env if exists and assign configured environment variables.
-NostoDotEnv::getInstance()->init(__DIR__);
+NostoDotEnv::getInstance()->init(dirname(__FILE__));
 if (isset($_ENV['NOSTO_API_BASE_URL'])) {
     NostoApiRequest::$baseUrl = $_ENV['NOSTO_API_BASE_URL'];
 }
The __DIR__ constant was introduced in PHP <I> and the sdks supports <I>