CLI script to add tags, order tags when building lang file

Also fix error in mark_active