Move Behat environment settings away from script section

Wait for the tests before committing.