use which instead of hash to see if curl is installed