correct segfault due to parameterfile still being written in hmc_tm_test_io