Improve cli2json ruby script to accomodate decent make.