Shell escape 'branch' var.

This is used in a shell command so it must be cleaned up before actually
using it in the command.