Fix a bug detecting semicolons when constructing exec strings.