Clean up inifile functions