Improved Node.js detection method

Checking `process.title` is unsafe the process title might change
(e.g., debug mode)