Fix a bug that kept file.exists always true

#408