Fixed finding Git when cross-compiling.
Merge pull request #1436 from SpecLad:host-git