Fixed Node.js detection to work inside component
Merge pull request #308 from jamestalmage/commonjs-fix

Fix CommonJS detection to work in Component package manager