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
Merge pull request #2465 from stefansaraev/multiple-pkg-dirs

config/path: handle multiple package dirs