build/mngids.py: improve handling of unknown ids
build/D7-ids.tables: update with ids from sofware factory