cmake's `execute_process()` has `WORKING_DIRECTORY` parameter, but qmake's `$$system()` does not.
As a workaround for qmake, `git` command was called with `--git-dir` provided explicitly.
But for dirtyness detection we need `--work-tree`, too.
Follow-up for https://github.com/fralx/LimeReport/pull/471#issuecomment-2362114994
Version is now generated automatically based on git tags.
Both cases are handled: building from git tree and building tarball downloaded from github.
Works for qmake and cmake