Use regex for git branch status to handle old and new style