Fix broken dependency crashing build after clean