Recovery function for autosaved files