Another attempt to improve invoking of download call in scripts/dowonload.php.