Generalised curl rename install script to take architecture as a parameter