Previously the nushell module did not differentiate between Linux and Darwin when deciding where to place config files, whereas nushell does. This commit fixes that.
Recent versions of nushell uses a different configuration setup. This commit adjusts the module to match. Fixes #2952 Fixes #2837