Revert dir replacement.