Fixed dependency files not being saved away if using -MMD or similar.