'cli' mode detection at 'CConsoleApplication' fixed