Fix cases where LC_NUMERIC isn't set or when .pam_environment doesn't exist