added support for wget, in case curl doesn't exist