Manipulating environment variables in the Windows Registry