Reworked scripts to work without Avahi.