Instead of sleep, wait until sauceconnect tunnel is up.