Capture mysql_run_upgrades as return not as addition

The code re-used the rc variable to get string length values. As a
result, when we started using the rc variable to really capture the
return code of the mysql_run_upgrades function, we already started with
a non-zero value.

This commit fixes bug #12 and bug #13.