Make waiting for mysql to be up more reliable (refer to dockerfile/percona#3)