Consider CLI interactive only if both stdin and stdout are ttys