Reworked subset checking using comm command instead of grep