Update 55-migrate-network-devices.sh

Instead of unset the array element I rebuild the array with search and replace.