Use MacPorts if Homebrew isn't installed

Rewrote the install script of OSX users so that it installs with either MacPorts or Homebrew/
Also install wget if it's not installed already.