Modified submodules deinit script