Support both list and dict format for builder config

[email protected]
BUG=497243

Review URL: https://codereview.chromium.org/1186323002

Cr-Commit-Position: refs/heads/master@{#334569}
1 file changed