Fix file not found error check.
Ditto for FileExistsError.