Add xml declaration when rewriting config.xml