Amended to do a check on prior percona installation

This provides a fix to the replication that was broken.