Save configuration file upon exit.
Minor compilation fix.
Sanitise configuration file.