This allows the ruby payloads to work properly on Windows
Fix a typo and always treat ports as integers:
Handle invalid commands gracefully (dont exit)
Unconflicting ruby_string method

Looks like the conflict was created by the msftidy fixes that happened
over on the master branch. No big deal after all.
Lands #1485, fixes for Windows-based Ruby targets
Trailing whitespace fix

Note that this commit needed a --no-verify because of the erroneous
check in msftidy for writing to stdout. The particular syntax of this
payload makes it look like we're doing that when we're really not.

So don't sweat it.