Replace wget with curl

To prevent certificate errors. (Debian Wheezy, Squeeze)