fix bug when HOME isn't defined