Fix weird intermittant bug when getting Git Branch.

See
https://github.com/Glavin001/MrShell/commit/d5c23dc86201c11068a8846831ce56de530409b9#commitcomment-8739128