generate gms.json by gms dir