Update make version to check for git.

This will prevent the version from being set to null if git isn't in the
path.

Fixes #6815
you've got a point. I think I was solving another issue that I thought was related. if you try closing the shell when it's waiting for input it after Press enter to continue is displayed it will hang.