Shorten some conditional constructs. Fix bug with "=2" being written to ini. Make ini sections uppercased.