pulling replicaset from mongo to avoid -r option

Script get replicaset name from mongo if action replica_primary is needed and replicaset is not defined byt -r option.