Add support to scan a range of IPs for the check command

[SeeRM #8737] This allows the check command to scan multiple hosts.
Fix nil rhost
Ensure the rhost datastore option is restored
Land #2906, check a given range