Directory watcher fix

fixes #142