Fixing the function to delete entry from DHCP configuration file