tree-replay.sh: add new option --work-dir