Undo dir changes.