xbps-rindex: fixed writing repo index-files (regression added in e29f221).