Fixed windows case to prevent bad java_home variable setting

I encountered a bug in this version which caused a bad java_home node attribute to be set because of the case statement below (it would fall through to the else). That in turn caused a problem with the generated command which caused a popup, hanging chef-client runs. Below is a quick fix.