Fix a few issues with Windows script creation

There were a few linux-isms left in the Windows script
generation that showed themselves when the test suite was run.
Consolidated error strings into variables.
Fix tests to reference latest plugin version