improve sed regexp to detect git current local branch and remote branch