Add support for external dependencies in watcher.