Implemented a watch tree notification system based on the target directory structure. This fixes a crash that happened as soon as a directory was renamed or deleted.