modified the patch to store the string internally rather then an array of allocated string pointers, less hassle with memory allocation. changed to use fnmatch, so *.foo is needed (not .foo as with the patch)