Do not attempt to display progress bar for non-TTY processes.
Fixes #23.