Fix behavior of glob patterns for ignores

This should fix #385.