Moved backup/undo dirs back into repo

This is to prevent having to create these directories after a new clone.
Added ignore rule for tmp_files.