root2hdf5: implement --update mode and fix regression