clean out build directories for better tests
check length of matches before ignoring
Merge pull request #1 from stevenschobert/fix-pattern-match

Fix pattern matching