don't blow up on Rails.stage; properly handle config lookup