Only define user var in operating system case statement