- set cmd [list tclsh $directory/dictionary-manager]
- if {$debug} { lappend cmd --debug-server }
- lappend cmd --remote-server-1 $directory $dictdir
+ set cmd "cd $directory && tclsh ./dictionary-manager"
+ if {$debug} { append cmd " --debug-server" }
+ append cmd " --remote-server-1 $directory $dictdir"