build: dump effective user/group id mapping to file