Handles mongoURI env var substitution properly