Fix for range of IP address

Added check for existence of nmap