Fixed not running with --tmux option
Added synchronising pages only when a command is being run