fixed memory error where hdf5 version func was returning freed c_str