compose: Convert passwd/group checking from direct parser to glibc