(#23053) - couldn't find HOME environment -- expanding `~/.puppet'
 when running puppet command as non root.  This happens
 because ruby doesn't have a pure bash shell with is required to expand the the tilde.
 The fix is to just use the ruby environment HOME path to expand the path correctly.