Fix postinstall scripts

- Fix spelling mistake which prevents post-install actions from runnning at all
- Accomodate for setups where node's binary is not called 'node'

Fixes https://github.com/NativeScript/nativescript-cli/issues/113 but the change affects Macs too