Fix DATABASE_URL detection when multiple config vars have one value

Reported by Jose Neto <jbastosneto@gmail.com>
Reviewed by Will Leinweber <will@heroku.com>
Merge pull request #1113 from fdr/fix-multiple-url

Fix DATABASE_URL detection when multiple config vars have one value