Locate replicaset using a config file rather than hardcoding.