Replace $HOME with '~' for core.excludesfile