Update duped user check, stats collection, perl version detection, other minor fixes.