Fix: only use prefix download url if set, otherwise generate url with the global $_SERVER array.