Update dt extract script to suppoer v2 dtb.