Make replica set configuration more robust
Merge pull request #459 from detiber/mongoRS22

Make replica set configuration more robust