Expand ~ for --remote --get-filelist command