Fix setting proxy timeout from CPL script.

Reported by sekil on IRC.

(cherry picked from commit f647e34f98651a30f86f2f2dc774fa067bcce8ca)