locals.js fs.exists check