Function to set different path to git executable
Check and pick a supported version of git