[build] graph builder: update check usage of define