updated the build script todo submodules properlly