Auto-discover current branch