Issue #108 - Zsh:error in git dir if there is new files

It was a problem with local declaration and assignation in the same
time. Don't ask me why zsh complains, but it did.
Also, I took the liberty to make a similar change en bzr part, just a
precaution.
Merge pull request #111 from ldidry/108

 Issue #108 - Zsh:error in git dir if there is new files