Improved update script and fixed some submodules