expand vars like $HOME used in config values too
Merge pull request #3486 from pieska/expandvars

expand vars like $HOME used in config values too