fixed tmux optimize not working and probably for screen scripts also