Fix a bug with fs.exists()