Fix the way we check if a config.xml was modified

Wasn't copying the xml properly, and the comparison to see if it was modified
was always returning false. Using a deep copy now that fixes it.

refs #1129