Fixes #381: git branch with / in name causes failure

We were making an invalid assumption that branch names were always simple tokens.