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