fix paths to use SPARK_HOME_DIR