fix a problem with home directory in MacOS