Add log file to download, path cleanup on defaults, and adjust invoking of download call in scripts/dowonload.php.