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. Cygwin emulates /dev/null, so it's excluded from the list of Windows OSes.

Tested on MRI 1.8.7, 1.9.3, 2.0.0.