I think the logic here would be simplified if you used fs.existsSync. Also can we get this to run with mozilla-central builds so that we update things if paths ever change?