[MacPorts] #48165: restore_ports.tcl script fails with "can't read "replaced_by": no such variable"