Fix bug where path to config file could not be found when running from a PHAR