Revert directory change.