Added check if package downloaded correctly