AFAICT SPARK_CORES isn't read from the environment, but passed in as a command line argument, so I removed this.