Specify IN_ONLYDIR when adding a directory watch.