MPI: Make check_jobs.py work properly with rank suffixes.