Fix OS X build

- Use $(uname) instead of $OSTYPE
- Fix shebang
- Fix typo

The OS X build failures (caused by the wrong `$OSTYPE` env var) were originally reported at:
https://github.com/openshift/origin/issues/177

Signed-off-by: Vojtech Vitek (V-Teq) <vvitek@redhat.com>
hmm -- this worked okay on my mac (10.9 Mavericks) but perhaps it is only on new systems.