Fix registry envvars

The environment variables are not passed if we run a process as another user. We need to explore different ways on how we can accomplish this, but for now let's stick to the same user.