 
         Log.info("Starting watching templates.")
 
-        let templateWatchers = topDirectories(from: templatesPaths.allPaths).map({ templatesPath in
+        let templateWatchers = topPaths(from: templatesPaths.allPaths).map({ templatesPath in
             return FolderWatcher.Local(path: templatesPath.string) { events in
                 let events = events
                     .filter { $0.flags.contains(.isFile) && Path($0.path).isTemplateFile }

                top.append((path, (try? path.recursiveChildren()) ?? []))
            } else {
                let dir = path.parent()
                top.append((dir, (try? dir.recursiveChildren()) ?? []))
            }
        }



        Log.info("Starting watching sources.")

        let sourceWatchers = topPaths(from: watchPaths.allPaths).map({ watchPath in
            return FolderWatcher.Local(path: watchPath.string) { events in
                let eventPaths: [Path] = events
                    .filter { $0.flags.contains(.isFile) }
