Update dependency versions

Also switched from ~ to ^ to follow new npm recommendations
Rewrite filter pattern tests to be safer
Merge pull request #5 from menssen/master

Fix failing tests for ignore/filter patterns