With HA, really look for mongodb master on all nodes

We were only looking at the current node, unless the current node was
not part of the replica set. That's obviously broken if the current node
is part of the replica set, but not the master.
Merge pull request #151 from vuntz/fix-mongodb-check

With HA, really look for mongodb master on all nodes