Fixed Node.js detection to work inside component