archive: simplify DetectCompression