improve error messages when the download fails

This pull request addresses #48.
It's probably better to reuse the command that was used to execute the installer. Is there a better way than looking at `$_SERVER`?