[PATCH 2/5] ids-functions.pl: Rework function write_modify_sids_file().