Some minor changes
Fix some errors in path, especially when using tmux.
Make sure there is only one entrie for each path.