[ubuntu] improve manifest.json generator