Fixed outfile in case of no communicator