Why not simply `if (fs.existsSync('/dev/null'))`