Fix another output bug when run with MPI, and also printing timing_file when appending