Fix branch name check regex in sync-all