Update environment variable registration so that it is able to cope with...

... the changes to Octopus environment variables in version 2