Added option to use wget if curl isn't present