archive: use bufio for compression detection
api/client/build: detect compression instead of Dockerfile