Disable log color based on whether stdout is tty
It was mostly for jq. But "disabling colors because output is JSON"
is completely incorrect: it's assumption based on author's usage, not
technical constraints. I myself too sometime want to see colored JSON
output for debugging.