Reorder middlewares.
Only show progbar when stdout is a tty.