Fix messages flush on pretty.rb

Previous commit forced the queued messages flush on console before Background.
That doesn't worked well with Scenario outlines with Background.
Printing the queued messages before the scenario name seems to work better.