I had the same issue after installing Emacs 27.1, my default directory became `"/"`

I could fix it by adding the following to my .emacs file.

```
(setq default-directory "~/")
(setq command-line-default-directory "~/")
```