Changed from using wget to curl

- Wget is not installed by default on Mac :( curl seems like it's installed
  everywhere.
Changed profile hook to use if statement.

- Also changed to use curl instead of wget. Works for mac with https in that
  case.