Expand ~ and ~user in core.excludesfile, commit.template