Refactor how we download SDK packages. Fixes the problem where multiple
license challenges cause downloads to fail.