wmfsm: Handle errors related to the HOME environment variable.