clear require cache for appdir on shutdown and --watch-changes