Fix couldn't find HOME environment var error