homedir setup for linux and mac