add pkg argument required if we want to check an installed pkg or pkg source tree