fixes yahoo/locator#5 improve logic to prevent walking sub-pkgs