Fixing case where HOME environment doesn't exist