do a better job of detecting master/slave changes by optionally performing an "info replication" on a loop