only delete old modules if module path exists
