Give precedence to .bz2 and .gz over .xz

Because not all platforms have .xz installed by default.
With this change precedence is given to .bz2 and .gz archives as these
are more widely supported. (Notably on OSX, where xz-utils is not
installed)