Fix "autoload.php" path in cli script

Wrong relative path of "autoload.php" is used in CLI script when it is used within an application. The PR fixes the problem.