configure_datastore_add_replicants fixes

Fix some logic and typos in configure_datastore_add_replicants.