improve console output, don't print progress messages unless stdout is a tty