Make prod/spec switcher work with non-rails apps