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>