SQOOP-1070: Shell scripts should not rely on $PATH if $JAVA_HOME is set

(Sean Mackrory via Jarek Jarcec Cecho)