De-duplicate directories with the same name, like "/etc" and "/etc/"