fix checking if exists a package on local