Make system temp directory ultimate fallback for logs.

If we cannot write to user configuration directory, then write
the logs to the systems temp directory.

refs #7959
Added filename to logpath. refs #7959
Merge remote branch 'origin/feature/7959_log_to_temp'