Fix all_instances bugs

Also try to use wget to download packages if curl fails.