begin supporting JAVA_HOME variable setting using bash.d script.