Use co-exists instead of fs.exists.