set the filename early, so wrinting the undofile won't fail