unwatchtree when res is removed and has rootdir field