fs.watch() implementation