You might want to move `SPARK_TOOLS_JAR=""` outside the `if` block. This variable gets used below while setting the classpath, so its better to have it initialized correctly.