Switched from using case statement for checking OS