bugfixes mongodb replica set initialization script