Applied patch by possum@possum.cc. Also ignored stderr and improved return status in password check