Added JRE7 Guard back

Changed the original `unless =~` block with a case switch, once again due to syntax errors with `puppet 3.1.1`