newgrp: more robust crypt() usage

Signed-off-by: Karel Zak <kzak@redhat.com>