Preliminary support for selfupdate, almost somewhat improved config handling