support extracting ghc xz'ed tarballs

GHC upstream started with 7.8 shipping .tar.xz files as well as .tar.gz.
It would be nice to support those: this change does that.

If a finer case statement is preferred I can rework the patch.