Fix stupid logic error that caused redundant ssh connections.
Merge pull request #37 from mistio/shell_fix

Shell hot fix