Update dawnload.php

CLI support & Bug fix.