modified submodules init/deinit scripts
fixed oops on modified submodules init/deinit scripts