mmj.cmd: remove dep on global variables