added -rplSet parameter if mongo in replicaset is configured