fix rake detection when DATABASE_URL not present