Edit remote shell detection to remove dependence on $host. Instead, detect whether the new detection method will work on the host.