Add a regression test for incorrect added events.

This is a regression test for a bug I ran into where a matching
directory would be reported added when a non-matching file was created
along side it.  This only happens if the directory name doesn't occur in
$PWD.
Fix directory test.