Fix behavior of glob patterns for ignores

Fixes #385
Merge remote-tracking branch 'iizukanao/fix-glob'