bashrc.d: fix exporting JAVA_HOME when multiple JDK/JRE's are installed