Support HADOOP_SLAVE_CORE_COUNT and SPARK_SLAVE_CORE_COUNT environment variables.