Corrected download behaviour of package manager and cached_downlaod