Added an mpigetrank command for checking the file existence