common: add ExpandHomeDir, make use of it and UNIXtoRFC1123