configure: Improve zstd test