Update the current build state correctly.