[upgrade] add vars to support multiple OS