Remove dependencies on non existing modules.