[PATCH 1/2] Add a little debugging when pkg_exists fails