strip out PathWatcher code since it requires pathlib (or Python 3.4+)