CXX-390 Use mongodb_uri to extract process port

Thoughts on whether we should fix it?