options: fix logic flaw when parsing ipaddr/mask notation