Added exists('+undofile') guard