Added diagnostic error message when missing HOME environmental variable

Proposed resolution for issue #270