Substring search could treat a permission error as missing if the path contained "enoent". Unwrap the Electron invoke prefix and match the known ssh2/Node absence kind at the start of that message.