Use ENV or connection option if string case succeeds.
Merge pull request #152 from bobbytables/fix-env-connection-option

Use ENV or connection option if string case succeeds.