purge removed modules after upgrade