this is copied from beego/config, parse ini config file