Fixed a bug in match_hard_links() where an empty directory would try