move lookup_patchsets to patches
fix tracing output in logging
fix RedHat _system_name fallback, fix #2917