test: support candidate V8 versions
When V8 is built from its master branch, it adds a " (candidate)" suffix to the version string. Add support for that in the tests so it does not fail with Node canary.
Example failure: https://ci.nodejs.org/job/node-test-commit-linux/10217/nodes=centos7-64/
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test, V8