During functional tests, wait for Varnish to start

The random failures were annoying, so there we go. ;)