check_gcc_output: avoid matching dependency generation commands using -MM