Changing the way packages are check using the dkpg bash command. Using the -s parameter instead of -l since -l still returns results for packages not installed.