Fix behat waiting for jobs to finish