Properly check if we're in Node.