Gracefully handle when $HOME is not in environment.

In preparation for potentially running Bang from init scripts (or any
other minimal execution environment scenario), fix the corner case
wherein $HOME is not specified in the environment.