Safer way to judge using mocha cli or not.