Check shouldIgnore() before adding event

I would like to ignore `.swp` files created by Vim editor, however specifying `-ignores ".*swp$"` has no effect. This pull request fixes that.