log to download folder instead of current directory (but fall back to current directory on failure, then fall back to temporary directory)