add watch_dir for userscript. #425