[build] graph builder: check rule name duplicates