refactor path id lookup code into its own function (CNY-2250)
refactor path id lookup code into its own function (CNY-2250)

sassoftware/conary,sassoftware/conary,sassoftware/conary,sassoftware/conary,sassoftware/conary