few bugfixes in tmux scripts