try to remove empty dirs in target