fix copy/paste bug on osx/linux/win
Merge pull request #643 from gordonwritescode/bug/join-copy-shell

I manually teste the copy& paste and it works. Since this is a minor PR (couple of lines) I am merging it.