Adding these two substitutions removes the duplicates for me in the --sysconfdir=/etc case: 's+:/etc/krb5.conf:/etc/krb5.conf"+:/etc/krb5.conf"+' 's+"/etc/krb5.conf:/etc/krb5.conf"+"/etc/krb5.conf"+'