bashrd.d/java.sh: do a better job of detecting the JAVA_HOME
results.sh: can now be called on Linux the same way as results.cmd on Windows