fix mac home directory issue on mac