use curl instead of wget (OSX has only curl built-in
use commnad line args to get rid of hardcoded paths