Revert "Change a way to resolve a path of a package"

This reverts commit ee1ce33f42ccca522168e641f10973357e243d53.