function getHtpasswds() revised
part(2) of bugfix for #1067