Fix issue when ip route shows mask-less IPs

Sometimes 'ip route' can show mask-less IPs. In that case ParseCIDR will fail. If it does we try to ParseIP to make sure.
Fixes #1214