When called from within a git worktree, `amici._get_commit_hash` returns `unknown`. It should return the commit hash instead.