Allow .tgz extension for gzipped tarballs.

There's another issue open for this but I'm not sure how to re-use it.