Revert "Change to HOME instead of ~ for home."

This reverts commit be4fb22e5769dd8ee13f1926cee4dedf797ac966.
Change to expansion of HOME instead of ~ for homedir.