Fixed script to generate tags configuration