Only render the progress bar if writing to a terminal