Fixed a bug in saving current branch to file

Fixed a bug in saving the current branch name (tried to chomp a symbol instead of string).