Updated old version file logic

Added optional deletion
Added cache of all old files deleted or not current