[RAILS] Added, that STDERR/STDOUT are flushed per batch, and the progress bar is forcibly displayed initially