detect current backend's type before changing it. add
"~/.config/shadowsocks/bin" to search paths on UNIX platforms.