Moved definition of $rootDir to config.php