Fix segfault when using both -g and -MMM

An if test wasn't strict enough.