issue6291: corrections brought to isCommandLineScope