Make it callable via Windows

Separate shell script functionality from Node source (easier to use in Windows)