Deal with some file-watching race conditions.