Ignore dependency commands

When creating the json compilation database using "bear make ..." and the makefile generates dependency files, there may be duplicate entries in the variable compileCommands in constructCompileCommands(), one entry for the dependency file generation, one entry for the actual compilation.

This patch filters the commands that contain "-M" or "-MM". The will be ignored.