Use env var provided by openvpn to determine if it's tun or tap, it should fix #3475