Fix installing as service on Windows

Patch by Josh McKenzie; reviewed by Philip Thompson for CASSANDRA-8115
Merge branch 'cassandra-2.1' into trunk