Fix re-building after clean.