fix __directory_is_empty bash function

Moved from ls call to straight bash using dotglob and nullglob.
simplify recursive doins handling

Basically leverage dotglob and nullglob locally instead of using them
via the __is_directory_empty function.

This also makes pkgcore properly handle pkgs using recursive doins with
dirs only containing dot files.