build: Support a fallback to java 8 if java 7 is not found

 * In the case of a host installed only with java 8,
    the build starts correctly but on use of JAVA_HOME
    binaries, the java references are missing

 * Allow the java 7 to be tested and try to use java 8

Change-Id: Ie50892edb54feb8608a0ef80a1c2a8667703e8ee
diff --git a/envsetup.sh b/envsetup.sh
index 2bd2ae7..96af100 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -2055,7 +2055,8 @@
                 export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
                 ;;
         esac
-      else
+      fi
+      if [ ! "$JAVA_HOME" ] || [ ! -d "$JAVA_HOME" ]; then
         case `uname -s` in
             Darwin)
                 export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)