Update post-install scripts for portability

Assumes node is in the path. Should be portable on Windows, osx and linux