Fixed tmux problem with non-interactive shells
Several fixes found when installing in Sputnik