Add test case for pruning nested empty dirs