dump_args: Write to temp dir instead of hardcoded desktop path.

This is needed for cases when it's hard to see stdout output. Finding
the dump_args.txt file in temp folder should be doable.