check stderr with isatty() instead of stdout when deciding to show progress