Remove use of tilde expansion to accommodate Tcl 9

Tilde expansion in ordinary file operations was removed in Tcl 9,
per TIP 602, due to the risks of unexpected behavior it presented.
2 files changed