Rewrite `script/version` in bash
Make `script/build` compatible with Windows

The best way to run this is in the GitHub for Windows shell.