I added this line to set spark.files even when running in client mode -- not sure why it wasn't set before, but it's the correct thing to do.