archive: use bufio for compression detection