Improve extract method so that it also works with tar.xz files.