Pattern matching fixes

fixes kkemple/grunt-stripcomments#1 and other stuff