Use ENV or connection option if string case succeeds.

We were experiencing an issue where ENV's were not being honored for connections. The reason is because it would succeed in seeing a String for a connection, but only attempt to use the passed in argument. This adds the OR for environment variable connections.