anchor.diff:      set SPARK_CONF_DIR=%~dp0..\conf
     )
   
  -  set SPARK_ENV_CMD=%SPARK_CONF_DIR%\%SPARK_ENV_CMD%
  -  if exist %SPARK_ENV_CMD% (
  -    call %SPARK_ENV_CMD%
  -  )
  +  call :LoadSparkEnv
   )
   
   rem Setting SPARK_SCALA_VERSION if not already set.
  
positive.code: rem spark-env.cmd is loaded from SPARK_CONF_DIR if set, or within the current directory's
  rem conf\ subdirectory.
  
  set SPARK_ENV_CMD=spark-env.cmd
  if not defined SPARK_ENV_LOADED (
    set SPARK_ENV_LOADED=1
  
  
negative.code:   )
  )
  exit /b 0
  
  :LoadSparkEnv
  if exist "%SPARK_CONF_DIR%\spark-env.cmd" (
    call "%SPARK_CONF_DIR%\spark-env.cmd"
  )
  