function getHtpasswds() revised
part (2/2) of bugfix for #1067
- reimplemented original codelines 615 to 620