robustify home directory issue