Fix test for empty dirs