fixed corrupted gems on interrupted downloads.