Separate the Git executable path from the arguments

The original code was broken on MS Windows, where the path to Git usually contains spaces.