Fixing exception if HOME is missing.