Fix to potential unterminated loop if a delimited text file is deleted

Another try at fixing test cases with file watcher, don't work on some
platforms.