xbps-query: do not print ANSI escape codes if stdout is not a tty.
bin/xbps-install/fetch_cb.c: optimize: only call isatty() once.