trace-cmd: Fix temp files in trace-cmd split to include directories
trace-cmd: Fix temp files in trace-cmd split to include directories

If a directory is specified in the output file for trace-cmd split,
then it would fault because of the adding of the prefix ".tmp"
to the output name. This patch fixes the issues by parsing out the
directory name and basename from the output path.

Signed-off-by: Steven Rostedt <43232e92d70cc7aa53504ad0397085ee47bad87f@goodmis.org>

bigzz/trace-cmd,bigzz/trace-cmd