Fix bug in fossil branch management