tool: Moved internal variable isatty to the global config