Added better handling of ssh() function and a tmux_wrapper() function
for when there's a remote host involved.