Check that the HOME environment variable is set

A lot of things we do in the install script rely on this.
Merge pull request #2004 from vuntz/home-check

Check that the HOME environment variable is set