Avoid exception when the HOME and USERPROFILE env var are not defined