Update OS version function.