Check for XML before overwriting

https://github.com/ahwayakchih/conditionalizer/issues/8#issuecomment-25923310
Merge pull request #3 from sarahkemp/master

Check for XML before overwriting