Fixed package definitions
More robust when downloading packages

- Added exception handling
- Throw exception if package not found, and try continuing (only
possible when no other packages to download have dependencies to the
failed package), otherwise fail completely