Silence Java detection by redirecting STDERR

This supresses the output form `java -version` everytime `installed?` is run.

It adds a line for os detection, because Windows names it's null device differently.

Tested on MRI 1.8.7, 1.9.3, 2.0.0.