Prevent writing empty config.xml on parse errors.
Replace tabs with spaces.
Merge pull request #6 from schmengler/master

Prevent writing empty config.xml on parse errors.