run two passes through build definition file