Clean up string handling in powershell launch, check for JMX_PORT env var

Patch by jmckenzie; reviewed by pthompson for CASSANDRA-8423
Merge branch 'cassandra-2.1' into trunk