Make auto-switch its own, separate env script