bpo-30232: Support Git worktree in configure.ac (#1402)

Don't test if .git/HEAD file exists, but only if the .git file (or
directory) exists.
2 files changed