Updating run.sh to add wait for dependent services