fix jslint error. skip visitor when unwatching a directory.