build: fix test for --nocompress option