afm-udb: remove comments and join lines of unit files