Fix check for Node.js exports object