putenv: port better to native Windows