Fixed to allow download directly from REST interface if upstream is not avail.