Merge pull request #1161 from code-press/master

Upgrade script incorrectly looking for "err"