sha1_file: avoid comparison if no packed hash matches the first byte