Set home directory according to platform