Better support for bz2 tarballs

Fixes sstephenson/ruby-build#417