Add file monitor to listen for file events with inotify. Mark nodes dirty in a
bottom-up way when files are modified.