Separate undo files; fix markdown cmd