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

test is not very good. will update.