Allow git-core if git is missing.
For 1.19.2
Check for preinstalled packages. Fixes #1795.
NEXT: [GH-1795] for 1.19.4