fixed xml saving for linux