[minor] fix homedir detection on darwin