Update submodules and install npm deps if required before build