Broaden the fix from b7591ff8 to all platforms

The 'git' executable may very well be absent on other platforms as well.
Changelog