Fix the restart file parser/writer