Change way to find reduce partition and add message to output the first intermediate filename for a map operation