Replace calls to deprecated fs API functions
Replace calls to deprecated fs API functions

Use fs.stat() and fs.statSync() instead of deprecated fs.exists()
and fs.existsSync().

coldrye-collaboration/node-tmp,raszi/node-tmp,raszi/node-tmp