Use watchdog instead of pyinotify