Added a routine to get the value of the HOME environment variable.