fix a logic error of add git.exe to PATH environment