Only output colors/progress to TTY

Up til now this breaks if output is redirected.