Minor mods such as checking for tmux and not using autocd so that scripts works on both Linux and OSX as is