fix type for tgz archives, thanks to Ertuğrul