Added logic to check for an installed package

Signed-off-by: jgendron <gerald.gendron@gmail.com>