Fix fs.exists which doesn't have an error parameter.