Fix trailing whitespace in zip files
undo free bsd error handling
Initial commit, works on three OSes, but automatic mode fails.
Oops, don't cache payload_filename.
Tweak whitespace.
Whitespace tweaks and minor bug fix. Wrong payloads still run.
Update description.
Use renegerate_payload(cli, ...).
Add some debug print calls to investigate Auto platform selection.
Add DEBUG option, pass args to .encoded_exe().
Add some comments and clean some things up.
Fix whitespace issues from msftidy.
address feedback
Fix target selection probs, and swf path
Extra print_status I don't want
fix range
Fix automatic payload selection
Merge pull request #1 from wchen-r7/pr1856_target_fix

Fix #1856 - Target selection and swf path
Land #1859, fix trailing newlines in zip.

This incidentally fixes #1755 for real, where most of the discussion
of this bug took place.
Fix unix test post module load path

Works now:

````
msf post(unix) > run

[*] Running against session 1
[*] Session type is shell and platform is linux
[+] should list users
[*] Passed: 1; Failed: 0
[*] Post module execution completed
````