Get scripts working on Windows

This is split out from #7. This is just enough to get our scripts running on Windows, even though the build will still fail horribly.