search parent dirs for packages