Makefile: add wget portability variable - $(WGET)
add tertiary fallback for unavailable package files
fix bracketing of wget calls
cleanup after failed download
add package cdn fallback
Makefile: correctly escape urls for amazon services