Fix issue with tmux on OSX

This should fix launchctl and other commands working
within tmux - an example of this breaking was running
karma runner was launching a broken Chrome.

This solution was derived from
https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/issues/8#issuecomment-22840912