Revert "Fixed parsing of config.ini and saving"

This reverts commit 59292d50a9c0d3c5d4758f9dbfaa4d6160312ceb.
Back to a working state with the old config.php method