Re-implement watching

Previously removed in 77f3237.
Print error when readdirSync fails while watching

We continue to ignore this error (as it can happen when the file system
changes suddenly), but it's perhaps useful to print the error, because
this can also happen if we run out of file handles.