Generalised c-ares scripts to take architecture as a parameter