migrate-dbus-scripts.py: better handling of special cases