path: search for package folders only if they containg package.mk file
it's much more universal way as it was before
Merge pull request #3538 from vpeter4/folder_path

path: search for package folders only if they containg package.mk file