Fix some n00b bash scripting syntax errors.  Still doesn't run properly.