Makefile: Fix possible dependency inconsistency after make crash