Fix code that assumed spark.local.dir is only a single directory