build: Prioritize the tarball version
build: Prioritize the tarball version

By prioritizing the tarball version, a git overlay has no effect
on the readout version. With this modification the version detection
also works in Yocto 3.x.

Closes #13831
mvollmer/cockpit,deryni/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,martinpitt/cockpit,deryni/cockpit,mvollmer/cockpit,garrett/cockpit,martinpitt/cockpit,cockpit-project/cockpit,garrett/cockpit,moraleslazaro/cockpit,deryni/cockpit,cockpituous/cockpit,mvollmer/cockpit,garrett/cockpit,deryni/cockpit,cockpituous/cockpit,deryni/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,martinpitt/cockpit,cockpit-project/cockpit,cockpituous/cockpit,garrett/cockpit,garrett/cockpit,deryni/cockpit,martinpitt/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,deryni/cockpit,martinpitt/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,moraleslazaro/cockpit