[core] Fix internal IPv4 detection regex (related to #37)