build: Fix generation of ChangeLog on secondary working trees
* Makefile.am (gen-ChangeLog): Use test -e instead of test -d to check for git working trees.
In secondary working trees (created with git worktree add ...) .git
is a file referencing the original .git directory.