Tilde expansion in REPL shell completion

Search relative to `homedir()` if path begins with `~`.