Added diagnostic error message when missing HOME environmental variable