fix bug in getting interface name. couldn't execute without shell