Bugfix: print scenario names correctly when backgrounds exist

Previously, the scenario's name was displayed, then the background steps
were printed, and finally an incorrect scenario name (corresponding to
the first scenario run with that background) was displayed.

With this bugfix, the background is displayed, followed by the correct
scenario name.