Fixing bug causing git branch to remain visible after moving out of repository directory

Also fixing command-mode indicator.