Ensure that a clean slate is reached before building.