Fix behaviour if you have a branch named the same as your --prefix