Make waiting for mysql to be up more reliable
Merge pull request #3 from Synchro/master

Make waiting for mysql to be up more reliable