Support SPARK_SPARKPI_SLICES configuration for SparkPi test