Added a check if a build is complete and successful before digging down for further downstream builds