fixed dirstack tracking and added the persistent undo to the .gitignore