Fallback if HOME env variable isn't set

Just running into issues with this when the variable isn't set. Probably worth having a fallback if it doesn't exist.