small tweaks in network policy related scripts & fix the bug for MacAddressHexToBin() function