(PUP-1433) Gather sections for deprecation check in a Ruby neutral way

Ruby 1.8.7 Hash#select() returns an Array, 1.9.3 returns a Hash. So
we'll inject() instead.
(PUP-1433) Add short link to env settings deprecations

Currently pointing to 3.5 environment docs. The short link will need
updating for 3.6.