handle null cases for tmux pruning script