Make sure HOME is an absolute path

In setups where $HOME is not set, the previous implementation set "." as
default. The problem is that File.expand_path will raise ArgumentError
"non-absolute home" if HOME is a relative path. This change makes sure
HOME is an absolute path.