Trying a simpler/better way to watch a directory for changes.
Minor refactoring.