issue #20254: fixed script xt_dir
issue #20254: more tweaks to script
Merge pull request #407 from shackbarth/20254-globalfold

issue #20254: fixed script xt_dir