GHCi: Expand ~ in :script command

Fixes: #7685