meson: version.py: fix version extraction for git worktree dirs
For git worktree directories .git is not a directory but a file that points to the real .git dir.
Fixes #4 (closed)
For git worktree directories .git is not a directory but a file that points to the real .git dir.
Fixes #4 (closed)