Finding path to git fails for multiple installed gits
In case that more than one version of git is installed - or rather if more than one git location is in the path variable - the path to git will be corrupted (i.e. contain all lines).
make sure to pick the first line only (without whitespaces etc)