wrapping reattach tmux in safe shell script