Don't expand remote_tmp path locally
Expand variables in configuration files, take two

e.g. $HOME.
Merge pull request #8334 from veeti/cfg-vars

Expand variables in configuration files, take two