actually, maybe we should just switch to https://npmjs.org/package/fs.extra for this and a few other scripts