configure_datastore_add_replicants fixes

Fix some logic and typos in configure_datastore_add_replicants.
Merge pull request #1 from Miciah/bz1140782

configure_datastore_add_replicants fixes