Correct the file exists condition