added condition to ensure gpg_name and environment don't add effectively same listing twice.