A couple of fixes for this cool script

We have tested gccfilter on our (relatively large) codebase and found some issues:
* hanging script on output with complicated template warnings
* args passing problem (quotes/spaces loss)
We believe these fixes will be useful not only for us. Please review them and propose better solutions, if you can, of course.

Thanks in advance!