Fix builder/parser so it keeps some whitespace on split lines.

If previous line ends with whitespace, or next line starts with whitepsace
we need to preserve a space otherwise things line:
RUN echo\
...hello    (. == space)
will appear as: RUN echohello

Noticed this while looking at #5744 because he had lines ending in &&\

Signed-off-by: Doug Davis <dug@us.ibm.com>
I only touched whitespace between lines.  I did notice the missing whitespace on that line too and determined that splitCommand() was doing a trimSpace() after it pulled off the Docker command and assumed there must have been a good reason for that.