Copy in hadoop core-site.xml so local clones know where to find hdfs.
Update the given spark env to actually work, and only if a custom master isn't provided.