Fixed #1372 -- sleep before checking if the build completed to ensure the buidl exists