Support an optional flag at the end of %begin and %end to fix post-tmux 1.8 bug