Emit match events marked with / for dirs

Close #81
Close #82

Thanks @cowboy @isaacbw
v3.2.8