Transforms .gitignore patterns to ones compatible with the glob package (used by Grunt & others)