Fixed syntax bug in script.
Fixed another editting bug in shell script.