builtin/get-tar-commit-id: make hash size independent