Simplify reading pw.conf(5) by using getline(3)