fixing test test_resetnetwork_hostname for Gentoo based on RegEx