Improved submit() function in P4.

What worked on my server failed on production server because there was
an additional line of output. Instead of assuming the line you want is
the last line, check every line until you find the submittedChange key.