Try to use replSetGetConfig command before querying system collection.
Don't try to check 'buildIndexes' property of replica set config.
Use default for dict.pop().
Merge pull request #130 from lovett89/build-indexes-2

Try to use replSetGetConfig command before querying system collection and don't care about 'buildIndexes' property.