tests: use %LOGDIR to refer to the log directory This will allow it be set dynamically. Ref: #10818
curl: add --no-clobber Does not overwrite output files if they already exist Closes #7708 Co-authored-by: Daniel Stenberg