Fix the function of judging the commonJS environment
Merge pull request #2 from xch89820/master

Fix the function of judging the commonJS environment