[build] optimize search for nodejs in CMake (#25466)
### Description
optimize search for nodejs in CMake.
### Motivation and Context
The default behavior of CMake's `find_program()` is to search `/bin/`
folder before `$PATH`. This may cause a very old Node.js to be used.