Download packages if needed