tools: git-gen-version fallback to VERSION file if things goes wrong