Removes unused gems.