afm-launch: refactor reading of config file