SparkHadoopUtil.newConfiguration (in each of the profiles) is used to create a new configuration : unless I missed some place.
You could add this there ?

If that is not sufficient, you could add a method to SparkHadoopUtil to create job conf and add this to it - and ensure that all attempts to create job conf go to that method.