config/path: handle multiple package dirs

we should not fail if there are multiple dirs with
same name in packages/, if only ONE contains 'meta'

only a dir with 'meta' inside is a package