Fix progress print; print newline if not tty