CXX-390 Use mongodb_uri to extract process port

I added a check for the mongodb://, but there doesn't need to be contents following a / at the end. I think that's just for replica sets.