Allow regex matching of dir and files to ignore. Fixes #2