Make robust against branch names with slashes in them.