Honor environment on Windows and proceed with registry only if not existant