Output excape sequences only if stderr is a tty
Fix escape