Btw, for linux you could also use the GetEnvironmentVariable('HOME') method, but that will only work if the environment variable has been set.