added a wait and check for running instance to the end of start-instance.sh