Fix 'opam switch foo' to correctly update the ~/.opam/opam-init/variable.{sh,zsh}

This was a regression introduced in 27b2f81deb0213e12e1aa1cf833b4d991a8653f6 (post 1.0.0)