Fix the function of judging the commonJS environment