The upgrade script uses grep to search for verbatim strings. It should use grep -F to avoid getting search string to be interpreted as regex. This improves both performance of the search and prevents possible false matches e.g. because "." matches any character.