Issue #5: fixed tab completion for `.` and `~`