Don't supress final newline in exec line.

This was causing the 'end script' line to be wrapped up onto the end of
the previous line, which broke things