Updated deploy script to handle submodules