Results output in a variable, more thorough check for git installation

I made a few changes in the code to give the output of git as a output variable of the wrapper, so that the user can use it inside other scripts to make decisions, or suppress the output. Also, in case git cannot run immediately, the wrapper is also checking whether git is installed but not in the path (case with me), in order to return to the user a more accurate message.