If OS is windows avoid replace environ.