fixed typo in file.exists