makefile: Override to git 2.40 if version is unset
In the commit 'Makefile: Stop building git 2.39' (3fb282e7) we removed the previous git version v2.39 from being built.
But we missed overriding the GIT_VERSION
variable to the newer git
version v2.40. This causes the dependency to be incorrectly built.