Package all the upgrade-related scripts

We missed all the SQL scripts for adjusting the database schemas.

For now we don't package the Python scripts, since nobody is going to
upgrade an RPM installation since a version older than 1.10.
Log the CWD of the executed commands.

Debugging git errors is pretty much impossible without them.