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