[Bug 52010] %USERPROFILE% environment variable gets ignored