Tighten up the Rails feature detection to deal with Rails 2 apps that have Sprockets installed as seperate middleware.