Ensure the right git path is found in case of shim.
Ensure the right git path is found in case of shim.

If the git found is a shim, we need to follow the path to the actual git
directory to set the GIT_INSTALL_ROOT variable.
This happens when installing git via scoop for example.

cmderdev/cmder,cmderdev/cmder