(#15185) expand default user/conf dirs
The default values specified for user config dir and
vardir contained the "~" character, but were never
being expanded out to the full path of the user's
home directory. This fixes that and adds tests
to ensure that the values returned for these two
paths are absolute.