added wildcad support
tidy up
Merge pull request #8 from jchannon/ignorepathmod

added wildcard support