expand user home directory before using.

Fixes #18670
remove old commented out code
Merge pull request #18777 from UtahDave/2014.7local

2014.7local