Alkylation of 1,2,4-triazole-3-thiols with haloalkanoic acid esters