Revert "archive: use bufio for compression detection"

This reverts commit d234774c17440ddb8ade5b7ceec146106408da97.