fix bug introduced by defining CLI_SCRIPT after require config.php