RE: msi: make the WriteEnvironmentStrings handling of [~] a bit better