Fixing mpi file open with IO ranks