diff: Get output from os_system().

For 'diff-expr', recreate the temp files for consistency with the only
implementation.