shell script break out of while loop