accomodate for cases where JAVA_HOME points to JDK root directory
unbreak build for eclipse users