Add modfifed @mdwhatcott's fs watcher for auto-running tests.
Fix BFS to find correct path length.
Refactor BFS a little.