Convert tools/watch.js to use the files.* API.