Test scripts

We weren't testing the scripts.  When I added some tests, I realized that there were a little broken, and that they were completely broken on windows.   Try and fix this.