Fix behavior of glob patterns for ignores

Fixes #385
Merge pull request #401 from iizukanao/fix-glob

Fix behavior of glob patterns for ignores