Write node id to a file for shell scripts (avahi-ps) to use