Finished off winbuild script

Now waits for SSH daemon to become available, and the code is a bit
cleaner