Check for module object, not exports, for Node