Fix check of sysconf return in get_name/username_from_passwd_file