add .IS_UNDER_COMMAND_LINE global variable