Ensure waiting for all build task to be done before proceeding.