Undid changes to make it compatible with 4.9.5, added exit command to CNG macro.
Quick fixes to problems with the output - need to look at GetIsGitRepo() function.