Clean up configuration file