check for installed packages instead of the executable file