Sensitivity of the kink instability to the pressure profile