moved toposort from build sequence to recipe_parse logic.