Add in nif for getting current username, rather than using environment variables.