Bug fixes following HP-UX shadow and TCB testing

Works properly on both /etc/shadow and /tcb/files/auth now.