test: fix output tests when path includes node version
Refs: https://github.com/nodejs/node/pull/47498#issuecomment-1532508231
sometimes process.cwd()
has the node version included in it - so we must first normalize process.cwd()
and only then normalize process.version
.