KNOX-346: The knox-env.sh script should prefer JAVA_HOME over java on path
Contributed by svelpula at hortonworks dot com
(cherry picked from commit ba9097b9155425f4161bf98f10600d078e1f7858)