Calculate dependencies so this builds on old ruby

Ruby 1.8.7 blows up on new versions of nokogiri and redcarpet, so
blacklist those version if we're building on old ruby.