build: Don't check parent directories for git tag

Sometimes Zig is built not from a git repository (e.g. from tarball), but inside another git repository (e.g. distro package repository). Make sure that the version check tries to parse a tag of Zig, and not of a parent directory.
21620f3c65LN Liberda committed on 3/8/2025, 5:54:50 PM· committed by Linus Grohparent3b3c189
1 file changedLine totals unavailable