Add common path into undo info.
Implement undoAction
Add cwd into undo info